using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class SachBus
    {
        public DataTable LayDSSach(string ten, int b)
        {
            SachDao sach = new SachDao();
            DataTable dt = new DataTable();
            dt = sach.LayDSCanTim(ten, b);
            return dt;
        }

        public void CapNhatDSSach(SachDto sach)
        {
            SachDao s = new SachDao();
            s.CapNhatSach(sach);
        }

        public DataTable LayDSSach()
        {
            SachDao s = new SachDao();
            DataTable dt = new DataTable();
            dt = s.LayDS();

            return dt;
        }
    }
}